package com.livi.tools.cas_general_backend.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@RestController
public class RedirectController {

    @RequestMapping(value = "/index", method = RequestMethod.GET)
    public void toHome(HttpServletResponse response, String currentPath) throws IOException {
        response.sendRedirect("./index.html");
    }

}
